<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../share/taglib.jsp"%>
<%@ include file="../share/isReadOnly.inc" %>
<script type="text/javascript">
function save() {
   var bForm = document.getElementById('houseForm');
   if (tt.validate()) {
      bForm.submit();
   }
}
function goEdit(type) {
   var form = document.getElementById('houseForm');
   if (type == 'Comment') {
      form.action = '/cms/house/comment.do';
   	  form.method.value = 'list';
   } else {
   	  form.method.value = 'editUI';
   }
   form.type.value = type;
   form.submit();
}
</script>
<table width="98%">
	<tr>
		<td width="80%">
			<c:if test="${houseForm.type eq 'Base'}">
			&nbsp;&nbsp;<font color="#000000">房源信息</font>&nbsp;&nbsp;
			</c:if>
			<c:if test="${houseForm.type ne 'Base'}">
			&nbsp;&nbsp;<a href="javascript:goEdit('Base');"><font color="#000000">房源信息</font></a>&nbsp;&nbsp;
			</c:if>
			
			<c:if test="${houseForm.method eq 'edit'}">
			
			<c:if test="${houseForm.type eq 'Trans'}">
			|&nbsp;&nbsp;<font color="#000000">交易信息</font>&nbsp;&nbsp;
			</c:if>
			<c:if test="${houseForm.type ne 'Trans'}">
			|&nbsp;&nbsp;<a href="javascript:goEdit('Trans');"><font color="#000000">交易信息</font></a>&nbsp;&nbsp;
			</c:if>
			
			<!-- 
			<c:if test="${houseForm.type eq 'Audit'}">
			|&nbsp;&nbsp;<font color="#000000">审核信息</font>&nbsp;&nbsp;
			</c:if>
			<c:if test="${houseForm.type ne 'Audit'}">
			|&nbsp;&nbsp;<a href="javascript:goEdit('Audit');"><font color="#000000">审核信息</font></a>&nbsp;&nbsp;
			</c:if>
			 -->
			|&nbsp;&nbsp;<a href="javascript:goEdit('Comment');"><font color="#000000">评论列表</font></a>&nbsp;&nbsp;
			|&nbsp;&nbsp;<a href="/cms/uploadFile.do?method=listH&objType=house&objId=${houseForm.houseId}"><font color="#000000">图片列表</font></a>&nbsp;&nbsp;
			&nbsp;&nbsp;<a href="/cms/uploadFile.do?method=listVideo&objType=house&objId=${houseForm.houseId}"><font color="#000000">视频列表</font></a>&nbsp;&nbsp;
    		</c:if>
		</td>
		<td width="20%" align="right">
			<a href="javascript:<%=isReadOnly?"void(0)":"save()"%>;">保&nbsp;存</a>
		</td>
	</tr>
</table>